package bean;

public abstract class Person {
   protected String id;
   protected String name;
   protected String gender;  
   public Person(String id, String name, String gender) {
	        this.id = id;
	        this.name = name;
	        this.gender = gender;
	    }
    
   public String getId()   { return id; }
   public String getName() { return name; }
   public String getGender(){ return gender; }

   public final void printWorkSheet() {
	        System.out.println("========== " + name + " 的工作单 ==========");
	        printDetail();          
	        System.out.println("====================================");
	    }

   protected abstract void printDetail();
}	
	

